﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace GrayParrot.Web.Formly
{
    public class FileUploaded
    {
        [JsonProperty("folder")]
        public string Folder { get; set; }
        [JsonProperty("name")]
        public string Name { get; set; }
        [JsonProperty("lastModified")]
        public string LastModified { get; set; }
        [JsonProperty("lastModifiedDate")]
        public DateTime LastModifiedDate { get; set; }
        [JsonProperty("webkitRelativePath")]
        public string WebkitRelativePath { get; set; }
        [JsonProperty("size")]
        public int Size { get; set; }
        [JsonProperty("type")]
        public string Type { get; set; }

        [JsonIgnore]
        public string FileName { get; set; }
        [JsonIgnore]
        public byte[] File { get; set; }

        public FileUploaded()
        {

        }
    }
}
